<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec"    uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<sec:authentication property="principal" var="currentPrincipal" scope="page" />

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body class="ms-theme-blue">

  <%@ include file="/WEB-INF/include/header.jsp"%>
  <%@ include file="/WEB-INF/include/submenu.jsp"%>
  
  <div class="container-fluid ms-container has-ms-sidemenu">
    
    <ol class="ms-breadcrumb breadcrumb">
      <li class="active">运输工具信息</li>
    </ol>
    
    <div class="ms-content-layout">
    
      <div class="ms-operation-bar no-margin no-bottom-border clearfix">
        <div class="ms-operation-group pull-right">
          <a href="${ctx.host}/supplier-reports/transport-tool-export?${queryString}" class="btn ms-btn ms-btn-blue">
            <i class="glyphicon glyphicon-send"></i>&nbsp;&nbsp;导出
          </a>
        </div>
      </div>
      
      <table class="table table-hover ms-table">
        <thead>
          <tr>
            <th>运输公司代码</th>
            <th>运输公司简称</th>
            <th>供方业务类型</th>
            <th>供方业务性质</th>
            <th>总运力（台）</th>
            <th>1位</th>
            <th>2位</th>
            <th>6位</th>
            <th>7位</th>
            <th>8位</th>
            <th>10位</th>
            <th>12位</th>
            <th>14位</th>
            <th>其他</th>
            <th>平均装载量（位）</th>
            <th>平均车龄（年）</th>
            <th>有效运力（台）</th>
            <th>锁定运力（台）</th>
          </tr>
        </thead>
        
        <tbody>
          <c:forEach var="tool" items="${transportTools}">
            <tr>
              <td>${tool.supplierCode}</td>
              <td>${tool.supplierName}</td>
              <td>${tool.businessTypeDescription}</td>
              <td>${tool.businessNatureDescription}</td>
              <td>${tool.totalVehicles}</td>
              <td>${tool.oneLoads}</td>
              <td>${tool.twoLoads}</td>
              <td>${tool.sixLoads}</td>
              <td>${tool.sevenLoads}</td>
              <td>${tool.eightLoads}</td>
              <td>${tool.tenLoads}</td>
              <td>${tool.twelveLoads}</td>
              <td>${tool.fourteenLoads}</td>
              <td>${tool.otherLoads}</td>
              <td>${tool.avgLoads}</td>
              <td>${tool.avgVehicleAge}</td>
              <td>${tool.syncVehicles}</td>
              <td>${tool.lockVehicles}</td>
            </tr>
          </c:forEach>
        </tbody>
        
        <tfoot>
          <tr>
            <td colspan="18" class="no-vertical-padding">
              <div class="pull-left">
                <jsp:include page="/WEB-INF/include/page.jsp">
                  <jsp:param name="url" value="${ctx.host}/supplier-reports" />
                  <jsp:param name="queryString" value="${queryString}" />
                </jsp:include>
              </div>
            </td>
          </tr>
        </tfoot>
      </table>

    </div> 
  </div>   
      
  <%@ include file="/WEB-INF/include/script.jsp"%>
  
</body>
</html>